#ifndef	_COMPAT_ENDIAN_H
#define	_COMPAT_ENDIAN_H


#include <compat/define.h>

#ifdef	__cplusplus
extern "C" 
{
#endif

unsigned short os_read16_le(const unsigned char *buf);
unsigned int os_read32_le(const unsigned char *buf);
void os_write32_le(const int value, unsigned char *buffer);
void os_write64_le(const os_int64 value, unsigned char *buffer);


#ifdef	__cplusplus
}
#endif

#endif
